Categories as Types